using UnityEngine;
using System.Collections;

public class controller : MonoBehaviour {
	
	public Transform bomb;
	public Transform player;
	// Use this for initialization
	void Start () 
	{
		
	}
	
	
	// Update is called once per frame
	void Update () 
	{
		
	}
	
	void OnGUI()
	{
		GUI.Label(new Rect(0,0,100,30),"Score: " + PlayerScript.score.ToString());
		DrawLives(PlayerScript.lives);
	}
	
	void DrawLives(int lives)
	{
		GUI.Label (new Rect(3,Screen.height-40,35,20),"Lives: ");
		switch (PlayerScript.lives) {
		case 1:
			GUI.Label (new Rect(3,Screen.height-20,18,20),"1");
			break;
		case 2:
			GUI.Label (new Rect(3,Screen.height-20,18,20),"1");
			GUI.Label (new Rect(25,Screen.height-20,18,20),"2");
			break;
		case 3:
			GUI.Label (new Rect(3,Screen.height-20,18,20),"1");
			GUI.Label (new Rect(25,Screen.height-20,18,20),"2");
			GUI.Label (new Rect(50,Screen.height-20,18,20),"3");
			break;
		default:
			break;
		}
	}
	
}
	